import request from '@/utils/request'

// 查询收款计划列表
export function listCwReceiptPlan(query) {
  return request({
    url: '/affairs/cwReceiptPlan/list',
    method: 'get',
    params: query
  })
}

// 查询收款计划详细
export function getCwReceiptPlan(id) {
  return request({
    url: '/affairs/cwReceiptPlan/' + id,
    method: 'get'
  })
}

// 新增收款计划
export function addCwReceiptPlan(data) {
  return request({
    url: '/affairs/cwReceiptPlan',
    method: 'post',
    data: data
  })
}

// 修改收款计划
export function updateCwReceiptPlan(data) {
  return request({
    url: '/affairs/cwReceiptPlan',
    method: 'put',
    data: data
  })
}

// 删除收款计划
export function delCwReceiptPlan(id) {
  return request({
    url: '/affairs/cwReceiptPlan/' + id,
    method: 'delete'
  })
}
